package com.wgy.day11.类和对象;

/**
 * Created by pc on 2020/11/7 21:14
 * Description: LearningJava
 */
public class Demo05Studen3 {
    public static void main(String[] args) {
        Student3 stu =new Student3();
        stu.setAge(19);
        stu.setName("古力娜扎");
        System.out.println("姓名:"+stu.getName()+",年龄"+stu.getAge());
        System.out.println("==========");

        Student3 stu1=new Student3("迪丽热巴",22);
        System.out.println("姓名:"+stu1.getName()+",年龄"+stu1.getAge());
        stu1.setAge(25);
        System.out.println("姓名:"+stu1.getName()+",年龄"+stu1.getAge());

    }
}
